home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 151-175 / disk_172 / spiff / sample.4 < prev    next >
Text File  |  1992-05-06  |  2KB  |  37 lines

  1. spiffword rem this file should be named Sample.4
  2. spiffword rem it is a test input file for spiff
  3. spiffword rem it should be compared with a file named Sample.3, to use it
  4. spiffword rem execute: spiff -s 'command spiffword' Sample.3 Sample.4
  5. spiffword rem the -s argument is  essential, otherwise spiff will
  6. spiffword rem will not recognized these comments for what they are.
  7. spiffword rem first we'll check the default tolerances.  this is the
  8. spiffword rem same test as is found in Sample.1/Sample.2
  9. default absolute tolerance should be .0000000001   
  10. no difference --> 0.0000000001  different --> 0.00000000011
  11. default relative tolerance should be 1.0e-10   
  12. no difference --> 10.000000001  different --> 10.0000000011
  13. spiffword rem Note that spiff said that the differences were on lines 1 and 3
  14. spiffword rem of the input files even though they were really on lines 10 and
  15. spiffword rem of this file.
  16. spiffword rem That's because spiff does not count lines with commands.
  17. spiffword rem As part of spiff's design, it is assumed that "embedded commands"
  18. spiffword rem such as these are not of direct interest and have been added
  19. spiffword rem soley for the purpose of controlling the spiffing process.
  20. spiffword rem OK. Now we'll try changing some things. first, we'll add 
  21. spiffword rem a commenting convention, everything from # to end of line
  22. spiffword rem will be ignored.
  23. spiffword comment # $
  24. there should be NO differences on this line !!!! # No difference here !!
  25. spiffword rem Well, that was fun. Now we'll ignore all differences
  26. spiffword tol i
  27. spiffword rem and there should be no differences the following lines
  28. no difference --> 0.0000000001  NO difference --> 0.00000000011
  29. no difference --> 10.000000001  NO difference --> 10.0000000011
  30. spiffword rem now we'll set the tolerance for the second number
  31. spiffword rem on each line, to be lower than the others.
  32. spiffword tol a0.02 ; a0.01 ; a0.02
  33. spiffword rem and only the middle number should appear different
  34. not different --> 0.011  different --> 0.011  not different --> 0.011  
  35. spiffword rem You get the idea. Enough fun for now.
  36. All done.
  37.